﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.Serialization;

namespace Server.Dto
{
    [DataContract]
    public class ProductDto
    {
        [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
        [DataMember]
        public Guid Id { get; set; }

        [DisplayName("产品名称")]
        [DataMember]
        public string Name { get; set; }

        [DisplayName("产品说明")]
        [DataMember]
        public string Description { get; set; }

        [DisplayName("频道列表")]
        [DataMember]
        public List<ChannelDto> Channels { get; set; }

        public ProductDto()
        {
            Channels = new List<ChannelDto>();
        }
    }
}
